/*
 *  All rights reserved 
 *  Naive Coders
 */
package com.naivecoders.refex.functions;

import com.naivecoders.refex.FunctionFactory;

/**
 *
 * @author Andrii_Butenko
 */
public class PrependFunction extends AbstractFunction {

    public PrependFunction(FunctionFactory origin) {
        super(origin);
    }

    @Override
    public AbstractFunction evaluate(ListFunction x) throws InvocationException {
       return listArg(x, 0).prepend(arg(x, 1));
     }
    
}
